<!-- 引入 layui.css -->
<link rel="stylesheet" href="http://unpkg.com/layui@2.6.8/dist/css/layui.css">

<!-- 引入 layui.js -->
<script src="http://unpkg.com/layui@2.6.8/dist/layui.js"/>
<%--
  Created by IntelliJ IDEA.
  User: zyh
  Date: 2021/12/1
  Time: 15:33
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<script src="/static/js/jquery-3.4.1.min.js"></script>
<html>
<head>
    <meta charset="utf-8">
    <title>开始使用 layui</title>
<body>
<table class="layui-table" >
    <thead>
    <tr>
        <th lay-data="{field:'eno', width:80}">ID</th>
        <th lay-data="{field:'ename', width:80}">用户名</th>
        <th lay-data="{field:'esex', width:80}">性别</th>
        <th lay-data="{field:'pwd'}">密码</th>
        <th lay-data="{field:'salary'}">工资</th>
        <th lay-data="{field:'dno'}">分组</th>
        <th lay-data="{field:'date'}">日期</th>
        <th lay-data="{field:'phone'}">电话</th>
    </tr>
    </thead>
    <c:forEach var="e" items="${emplist}">
        <tr>
            <td>${e.eno}</td>
            <td>${e.ename}</td>
            <td>${e.esex}</td>
            <td>${e.pwd}</td>
            <td>${e.salary}</td>
            <td>${e.dno}</td>
            <td>${e.date}</td>
            <td>${e.phone}</td>
        </tr>
    </c:forEach>

</table>
</body>
</html>
